<?php
/*
 * Application (web site) configuration
 * 
 */

// Define default language.
$default_language='en';

// Define all available languages for the site.
$available_languages = array(
    'es',
    'ca',
    'en'
);

// Common includes
$com_inc_path = '/var/www/include/common/';

// Application includes
$app_inc_path = '/var/www/include/admin/';

// Label files pattern. $1 stands for language code.
// Ex: labels.en.txt will be the english label file.
$translation_files = $app_inc_path.'labels.$1.txt';
// Skins path
$skins_path=$app_inc_path;

// Files path (images, css, etc.)
$files_path='/admin/files/';

// Admin root
$admin_root='/admin/';

// Labels will be read from correct label file.
$labels = array();

// Database connection
$db_name = "xarxeta";
$db_host = "localhost";
$db_user = "xrxtusr";
$db_pswd = "xrxtusr";

// Associate each resource with a page
$app_resources = array(
    "e404" => "e404",       // Error 404 page
    "0001" => "login",      // Login page
    "0002" => "welcome",    // Welcome page
    "0003" => "viewlog",    // Admin -> View log
    "0004" => "clearlog",   // Admin -> Clear log
    "0005" => "checkcons",  // Admin -> Check consistency
    "0006" => "changepsswd",// Admin -> Change password
    "0007" => "adduser",    // Users -> Add
    "0008" => "listusers",  // Users -> List
    "0009" => "deluser",    // Users -> Delete
    "0010" => "addmac",     // MACS -> Add
    "0011" => "listmacs",   // MACS -> List
    "0012" => "delmac",     // MACS -> Delete
    // We are supersticious... avoid the 12+1 page :)
    "0014" => "addip",      // External IP -> Add
    "0015" => "listip",     // External IP -> List
    "0016" => "delip"       // External IP -> Delete
);

$login_page = "0001";

// Log messages
$log_msg = array(
    "LOG_MSG_ADDUSR" => 'Added user "%s" with expire date "%s"',
    "LOG_MSG_ADDIP"  => 'Added IP address "%s" with username "%s"',
    "LOG_MSG_ADDMAC" => 'Added MAC address "%s" with username "%s"',
    "LOG_MSG_DELUSR" => 'Deleted user "%s"',
    "LOG_MSG_DELIP"  => 'Deleted IP address "%s" with username "%s"',
    "LOG_MSG_DELMAC" => 'Deleted MAC address "%s" with username "%s"'
);

?>